<section>
	<div class="page-header">
		<h2><?php echo $title; ?></h2>
	</div>
	
	<?php echo form_open('', array('autocomplete' => 'off')); ?>
		<div class="clearfix">
			<label>Name <span class="req">*</span></label>
			<div class="input">
				<input type="text" name="permission_name" />
			</div>
		</div>
		<div class="clearfix">
			<label>URL <span class="req">*</span></label>
			<div class="input">
				<div class="input-prepend">
					<span class="add-on"><?php echo site_url(); ?></span>
					<input type="text" name="permission_url" />
					<span class="help-block">Example: users/create_permission</span>
				</div>
			</div>
		</div>
		<div class="clearfix">
			<label>Parent</label>
			<div class="input">
				<?php echo show_array_dropdown($parents, 'permission_id', 'permission_name', '', 'parent'); ?>
			</div>
		</div>
		<div class="actions">
			<button type="submit" class="btn primary">Save</button>
			<?php echo anchor('users/permissions', 'Cancel', array('class' => 'btn')); ?>
		</div>
	</form>
</section>